const http = require('http')
const server = http.createServer()

server.on('request', (req,res) => {
    res.setHeader('Content-Type','text/plain;charset=utf-8')
    res.end('创建了一个简单的web服务程序')
})
server.listen(9000,() =>{
    console.log('服务启动成功！！！')
})